<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/edgeSol.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('edgeSol_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">includes/edgeSol.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdbool.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="edgeID_8h_source.html">edgeID.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for edgeSol.h:</div>
<div class="dyncontent">
<div class="center"><img src="edgeSol_8h__incl.png" border="0" usemap="#includes_2edgeSol_8h" alt=""/></div>
<map name="includes_2edgeSol_8h" id="includes_2edgeSol_8h">
<area shape="rect" id="node5" href="edgeID_8h.html" title="edgeID.h" alt="" coords="93,83,168,112"/></map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="edgeSol_8h__dep__incl.png" border="0" usemap="#includes_2edgeSol_8hdep" alt=""/></div>
<map name="includes_2edgeSol_8hdep" id="includes_2edgeSol_8hdep">
<area shape="rect" id="node3" href="vehiclePath_8h.html" title="includes/vehiclePath.h" alt="" coords="413,83,565,112"/><area shape="rect" id="node5" href="vehicleState_8h.html" title="includes/vehicleState.h" alt="" coords="411,160,568,189"/><area shape="rect" id="node7" href="add_8h.html" title="includes/add.h" alt="" coords="5,469,112,499"/><area shape="rect" id="node9" href="solution_8h.html" title="includes/solution.h" alt="" coords="424,315,555,344"/><area shape="rect" id="node20" href="remove_8h.html" title="includes/remove.h" alt="" coords="136,469,264,499"/><area shape="rect" id="node22" href="swap_8h.html" title="includes/swap.h" alt="" coords="643,469,757,499"/><area shape="rect" id="node29" href="operations_8h.html" title="includes/operations.h" alt="" coords="755,237,899,267"/><area shape="rect" id="node11" href="los_8h.html" title="includes/los.h" alt="" coords="237,392,339,421"/><area shape="rect" id="node14" href="stm_8h.html" title="includes/stm.h" alt="" coords="288,469,395,499"/><area shape="rect" id="node18" href="ltm_8h.html" title="rappresenta il livello LTM dell&#39;algoritmo UCARPP" alt="" coords="381,624,483,653"/><area shape="rect" id="node24" href="graphbmp-tools_8h.html" title="includes/graphbmp&#45;tools.h" alt="" coords="464,392,637,421"/><area shape="rect" id="node16" href="LTMConfiguration_8h.html" title="includes/LTMConfiguration.h" alt="" coords="208,547,395,576"/></map>
</div>
</div>
<p><a href="edgeSol_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structEdgeSol.html">EdgeSol</a></td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structEdgeSol.html">EdgeSol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeSol_8h.html#ac7a218a83dbed248d2b510386243c437">EdgeSol</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structEdgeSol.html">EdgeSol</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeSol_8h.html#a4a0c0ef763784c2a80924afa89f42403">initEdgeSol</a> (<a class="el" href="edgeID_8h.html#a73a3d93dc3a3c49a3e5ec5ec758e309f">PedgeID</a> pe, int _x)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeSol_8h.html#a0e7e1cf87eb2453e23394940c1333231">initEdgeSolCustomized</a> (<a class="el" href="edgeID_8h.html#a73a3d93dc3a3c49a3e5ec5ec758e309f">PedgeID</a> pe, int _x, int _marked)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeSol_8h.html#ae32c94f56af7d1d69b1c5afb2012deeb">freeEdgeSol</a> (<a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a> pes)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeSol_8h.html#a38db5b4c8a00e1d31b4eff619146cb40">cloneEdgeSol</a> (<a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a> edgesol)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeSol_8h.html#a62bd64dff0c3092e750fb0178a800856">printEdgeSol</a> (FILE *f, <a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a> pes)</td></tr>
</table>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="ac7a218a83dbed248d2b510386243c437"></a><!-- doxytag: member="edgeSol.h::EdgeSol" ref="ac7a218a83dbed248d2b510386243c437" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structEdgeSol.html">EdgeSol</a>  <a class="el" href="structEdgeSol.html">EdgeSol</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af980339782143196b3c33e6bdce13c92"></a><!-- doxytag: member="edgeSol.h::PedgeSol" ref="af980339782143196b3c33e6bdce13c92" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structEdgeSol.html">EdgeSol</a>* <a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>un puntatore a edgeSol per facilitare i passaggi per riferimento. </p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a38db5b4c8a00e1d31b4eff619146cb40"></a><!-- doxytag: member="edgeSol.h::cloneEdgeSol" ref="a38db5b4c8a00e1d31b4eff619146cb40" args="(PedgeSol edgesol)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a> <a class="el" href="edgeSol_8h.html#a38db5b4c8a00e1d31b4eff619146cb40">cloneEdgeSol</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a>&#160;</td>
          <td class="paramname"><em>edgesol</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>clona l'oggetto passato</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>edgesol non NULL </li>
</ul>
</dd></dl>
<dl class="post"><dt><b>Postcondition:</b></dt><dd><ul>
<li>in memoria viene allocato un nuovo oggetto <a class="el" href="structEdgeSol.html">EdgeSol</a> da <b>deallocare</b> manualmente</li>
</ul>
</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">edgesol</td><td>l'ogetto da clonare </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>un puntatore ad un'istanza separata ma coincidente come valori al parametro passato </dd></dl>

</div>
</div>
<a class="anchor" id="ae32c94f56af7d1d69b1c5afb2012deeb"></a><!-- doxytag: member="edgeSol.h::freeEdgeSol" ref="ae32c94f56af7d1d69b1c5afb2012deeb" args="(PedgeSol pes)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="edgeSol_8h.html#ae32c94f56af7d1d69b1c5afb2012deeb">freeEdgeSol</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a>&#160;</td>
          <td class="paramname"><em>pes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>dealloca lo spazio in memoria occupato da questo <a class="el" href="structEdgeSol.html">EdgeSol</a>. Anche l'<a class="el" href="structEdgeID.html">EdgeID</a> puntato da questo <a class="el" href="structEdgeSol.html">EdgeSol</a> viene deallocato</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pes</td><td>il puntatore all'<a class="el" href="structEdgeSol.html">EdgeSol</a> da liberare. Non inserire come valore NULL </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4a0c0ef763784c2a80924afa89f42403"></a><!-- doxytag: member="edgeSol.h::initEdgeSol" ref="a4a0c0ef763784c2a80924afa89f42403" args="(PedgeID pe, int _x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a> <a class="el" href="edgeSol_8h.html#a4a0c0ef763784c2a80924afa89f42403">initEdgeSol</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="edgeID_8h.html#a73a3d93dc3a3c49a3e5ec5ec758e309f">PedgeID</a>&#160;</td>
          <td class="paramname"><em>pe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>costurisce un nuovo arco da inserire in soluzione, copiando un riferimento. Non vengono effettuati controlli per verificare se pe abbia i&lt;j</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>pe non deve essere NULL </li>
<li>pe deve essere validato</li>
</ul>
</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pes</td><td>puntatore all'edgeSol da inserire </td></tr>
    <tr><td class="paramname">_x</td><td>il numero di volte che un particolare camion k passa nell'arco </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>un puntatore ad un <a class="el" href="structEdgeSol.html">EdgeSol</a> eventualmente NULL in caso la memoria sia piena. </dd></dl>

</div>
</div>
<a class="anchor" id="a0e7e1cf87eb2453e23394940c1333231"></a><!-- doxytag: member="edgeSol.h::initEdgeSolCustomized" ref="a0e7e1cf87eb2453e23394940c1333231" args="(PedgeID pe, int _x, int _marked)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a> <a class="el" href="edgeSol_8h.html#a0e7e1cf87eb2453e23394940c1333231">initEdgeSolCustomized</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="edgeID_8h.html#a73a3d93dc3a3c49a3e5ec5ec758e309f">PedgeID</a>&#160;</td>
          <td class="paramname"><em>pe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_marked</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>costurisce un nuovo arco da inserire in soluzione, copiando un riferimento. Non vengono effettuati controlli per verificare se pe abbia i&lt;j</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>pe non deve essere NULL </li>
<li>pe deve essere validato </li>
</ul>
</dd></dl>
<dl class="post"><dt><b>Postcondition:</b></dt><dd><ul>
<li>in memoria c'e una nuova istanza di <a class="el" href="structEdgeSol.html">EdgeSol</a></li>
</ul>
</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pes</td><td>puntatore all'edgeSol da inserire </td></tr>
    <tr><td class="paramname">_x</td><td>il numero di volte che un particolare camion k passa nell'arco </td></tr>
    <tr><td class="paramname">_marked</td><td>il campo marked da settare </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>un puntatore ad un <a class="el" href="structEdgeSol.html">EdgeSol</a> eventualmente NULL in caso la memoria sia piena. </dd></dl>

</div>
</div>
<a class="anchor" id="a62bd64dff0c3092e750fb0178a800856"></a><!-- doxytag: member="edgeSol.h::printEdgeSol" ref="a62bd64dff0c3092e750fb0178a800856" args="(FILE *f, PedgeSol pes)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="edgeSol_8h.html#a62bd64dff0c3092e750fb0178a800856">printEdgeSol</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="edgeSol_8h.html#af980339782143196b3c33e6bdce13c92">PedgeSol</a>&#160;</td>
          <td class="paramname"><em>pes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>stampa un arco in soluzione. La stampa sara' nella forma: </p>
<p>(0-1)[x:1g:F]</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>il file in cui stampare l'edge </td></tr>
    <tr><td class="paramname">pes</td><td>puntatore all'<a class="el" href="structEdgeSol.html">EdgeSol</a> da stampare </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="edgeSol_8h.html">edgeSol.h</a>      </li>

    <li class="footer">Generated on Wed Sep 4 2013 06:38:56 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
